package com.cc.entity;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Student implements Serializable {
    @Serial
    private static final long serialVersionUID = 4766044483191713468L;

    // 主键
    private Integer id;

    // 姓名
    private String name;

    // 年龄
    private Integer age;

    // 身份证号
    private String idNo;

    // 性别
    private String sex;

    // 出生日期
    private Date birthday;

    // 选课信息
    private List<Course> courses;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getIdNo() {
        return idNo;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public List<Course> getCourses() {
        return courses;
    }

    public void setCourses(List<Course> courses) {
        this.courses = courses;
    }

    @Override
    public String toString() {
        return "Student{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", idNo='" + idNo + '\'' +
                ", sex='" + sex + '\'' +
                ", birthday=" + birthday +
                ", courses=" + courses +
                '}';
    }
}
